import request from '@/utils/request'
//查询列表
export const getDepartmentListApi = (params) => {
    return request({
        url: '/company/department',
        method: 'get',
        params
    })
}
//查询单个
export const getDepartmentInfoApi = (id) => {
    return request({
        url: '/company/department/' + id,
        method: 'get',
    })
}
//添加
export const addDepartmentListApi = (data) => {
    return request({
        url: '/company/department',
        method: 'post',
        data
    })
}
//修改
export const editDepartmentListApi = (data) => {
    return request({
        url: '/company/department' + data.id,
        method: 'put',
        data
    })
}
//删除
export const delDepartmentListApi = (id) => {
    return request({
        url: '/company/department' + id,
        method: 'delete',
    })
}